package com.sino.config.server.bean.acl;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Table;

import com.sino.config.server.bean.Entity;

/**
 * 
 * @author nutz-matic
 * 
 */
@Table("t_user_permission")
@Comment("用户权限关系")
public class UserPermission extends Entity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Column("up_permission_id")
	@Comment("权限 id")
	private long permissionId;

	@Column("up_user_id")
	@Comment("用户 id")
	private long userId;

	/**
	 * @return the permissionId
	 */
	public long getPermissionId() {
		return permissionId;
	}

	/**
	 * @param permissionId
	 *            the permissionId to set
	 */
	public void setPermissionId(long permissionId) {
		this.permissionId = permissionId;
	}

	/**
	 * @return the userId
	 */
	public long getUserId() {
		return userId;
	}

	/**
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(long userId) {
		this.userId = userId;
	}
}